//
//  SetupTableViewCell.m
//  暴走段子_王桂敏
//
//  Created by 王桂敏 on 15/6/9.
//  Copyright (c) 2015年 lanouhn. All rights reserved.
//

#import "SetupTableViewCell.h"

@interface SetupTableViewCell ()
@property (nonatomic,retain) UIImageView *imageV;
@property (nonatomic,retain) UILabel *lable;
@end
@implementation SetupTableViewCell
- (void)dealloc{
    [_imageV release];
    [_lable release];
    [super dealloc];
}
- (UIImageView *)imageV{
    if (!_imageV) {
        self.imageV = [[[UIImageView alloc] initWithFrame:CGRectMake(20, 10, 30, 30)] autorelease];
        _imageV.layer.cornerRadius = 15;
        _imageV.layer.masksToBounds = YES;
        [self.contentView addSubview:_imageV];
    }
    return _imageV;
}

- (UILabel *)lable{
    if (!_lable) {
        self.lable = [[[UILabel alloc] initWithFrame:CGRectMake(55, 0, 100, 50)] autorelease];

        _lable.textColor = [UIColor whiteColor];
        _lable.font = [UIFont fontWithName:@"Helvetica-Bold" size:20];//字体加粗
        [self.contentView addSubview:_lable];
    }
    return _lable;
}


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.backgroundColor = [UIColor clearColor];
//        self
    }
    return self;
}
- (void)configCellWithData:(NSArray *)data{
    self.lable.text = data[0];


    self.imageV.image = [UIImage imageNamed:data[1]];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
